package com.syezon.wifikey.api;

/**
 * Created by Administrator on 2016/4/14.
 */
public class BaseHttpResult<T> {

    public static final int RC_OK = 0;
    public static final int RC_FAIL = 1;
    public static final int MSG_OK = 0;
    public static final int MSG_PARAM_ERROR = 1;
    public static final int MSG_EMPTY = 2;
    public static final int MSG_FAIL = 3;
    public static final int MSG_USER_LIMIT = 4;

    private int rc = -1;
    private int message = -1;
    private String extra;
    private T data;
    private int source = -1;
    private String dfNextStartKey;

    public BaseHttpResult(int rc, int message, T data) {
        this.rc = rc;
        this.message = message;
        this.data = data;
    }

    public BaseHttpResult() {
    }

    public int getRc() {
        return rc;
    }

    public void setRc(int rc) {
        this.rc = rc;
    }

    public int getMessage() {
        return message;
    }

    public void setMessage(int message) {
        this.message = message;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public int getSource() {
        return source;
    }

    public void setSource(int source) {
        this.source = source;
    }

    public String getDfNextStartKey() {
        return dfNextStartKey;
    }

    public void setDfNextStartKey(String dfNextStartKey) {
        this.dfNextStartKey = dfNextStartKey;
    }
}
